package com.example.park.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class ParkingEntity {

    private Integer id;
    // 车位编号
    @NotNull(message = "车位编号不能为空")
    private String number;
    // 车位地址
    @NotNull(message = "车位地址不能为空")
    private String address;
    // 车位信息
    private String message;
    // 车位标识码
    @NotNull(message = "车位标识码不能为空")
    private String key;
    // 车位主id
    private Integer uId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }
}
